/**
 * \license
 * Copyright Lassi Marttala 2013
 * 
 * This file is part of dlt2jpa.
 *
 * dlt2jpa is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * dlt2jpa is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with dlt2jpa.  If not, see <http://www.gnu.org/licenses/>.
 */

package net.fizzl.dlt.message;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;

@Entity
public class DltExtendedHeader {
	@Id
	private long id;
	
	private boolean verboseMode;
	private	int	messageType;
	private	int	messageTypeInfo;
	private	int	numberOfArguments;
	private	String	applicationId;
	private	String	contextId;
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public boolean isVerboseMode() {
		return verboseMode;
	}
	public void setVerboseMode(boolean verboseMode) {
		this.verboseMode = verboseMode;
	}
	public int getMessageType() {
		return messageType;
	}
	public void setMessageType(int messageType) {
		this.messageType = messageType;
	}
	public int getMessageTypeInfo() {
		return messageTypeInfo;
	}
	public void setMessageTypeInfo(int messageTypeInfo) {
		this.messageTypeInfo = messageTypeInfo;
	}
	public int getNumberOfArguments() {
		return numberOfArguments;
	}
	public void setNumberOfArguments(int numberOfArguments) {
		this.numberOfArguments = numberOfArguments;
	}
	public String getApplicationId() {
		return applicationId;
	}
	public void setApplicationId(String applicationId) {
		this.applicationId = applicationId;
	}
	public String getContextId() {
		return contextId;
	}
	public void setContextId(String contextId) {
		this.contextId = contextId;
	}
	
	// non-db stuff
	@Transient
	int length;
	public int getLength() {
		return length;
	}
	public void setLength(int length) {
		this.length = length;
	}
}
